/*
 * @Title TestNG.java
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.testng;

import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * @author lizhen
 */
public class TestNG {

    /**
     * @author lizhen
     */
    public TestNG() {
    }

    @Test()
    public void testEmailGenerator() {
        RandomEmailGenerator randomEmailGenerator = new RandomEmailGenerator();
        String email = randomEmailGenerator.generate();
        Assert.assertNotNull(email);
        Assert.assertEquals(email, "feedback@lizhen.com");
    }

    static class RandomEmailGenerator {

        public String generate() {
            return "feedback@lizhen.com";
        }

    }

}

